package com.app.vo;

import cn.hutool.core.date.DateTime;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.app.model.UserModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * 订单表
 *
 * @author 16693103420
 * @since 2024-01-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderExportVo implements Serializable {

    @ExcelProperty(value = "订单表ID")
    private Integer id;//订单表ID
    @ColumnWidth(31)
    @ExcelProperty(value = "商家名称")
    private String businessName;//商家名称
    @ColumnWidth(7)
    @ExcelProperty(value = "益联券价值")
    private Double voucher;//益联券价值
    @ColumnWidth(31)
    @ExcelProperty(value = "活动名称")
    private String activityName;//活动名称
    @ColumnWidth(31)
    @ExcelProperty("单号")
    private String orderId;//订单ID
    @ColumnWidth(7)
    @ExcelProperty(value = "订单状态")
    private String statusName;//订单状态名称  订单状态1 待使用2待评价 3已完成 4已取消

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    @ExcelProperty("下单时间")
    @ColumnWidth(17)
    private LocalDateTime createTime;

}
